from datetime import datetime
from pydantic import BaseModel, ConfigDict


class CreateUserParam(BaseModel):
    pass


class UpdateUserParam(BaseModel):
    pass


class UserInfoSchemaBase(BaseModel):
    username: str
    name: str


class GetUserInfoSchema(UserInfoSchemaBase):
    model_config = ConfigDict(from_attributes=True)

    id: int
    create_time: datetime
    update_time: datetime | None
